package com.letv.whatslive.model.redis.robot;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

/**
 * 个性化评论配置bean
 * Created by wangjian7 on 2016/6/7.
 */
public class SpecialCommentConf {
    private String pid;//直播ID
    private String cid;//个性化评论ID
    private String fileUrl; //文件访问路径

    private SpecialCommentConf() {
    }

    public SpecialCommentConf(String json) {
        JSONObject jsonObject = JSON.parseObject(json);
        this.pid = jsonObject.getString("pid");
        this.cid = jsonObject.getString("cid");
        this.fileUrl = jsonObject.getString("fileUrl");
    }

    public SpecialCommentConf(String pid, String cid, String fileUrl) {
        this.pid = pid;
        this.cid = cid;
        this.fileUrl = fileUrl;
    }

    public String getPid() {
        return pid;
    }

    public String getCid() {
        return cid;
    }

    public String getFileUrl() {
        return fileUrl;
    }


    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

}
